/****************************************************
    ScriptName:        TapTapStaticValue.cs
    Author:            龙之介
    Emall:        505258140@qq.com
    CreatTime:    2020/12/21 15:51:32
    Description:     Nothing
*****************************************************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using UnityEngine.UI;
using ZYKTool;
using System.Linq;
using HQL;
using LongZhiJie;
public static class TapTapStaticValue
{
    #region 常量

    public static List<ZYKTool.Model.ModelGunData> Guns属性 = ZYKJsonModelToolBase.Single.ZYKSingleModenGetGunsData();
    public static TapTap升级系统 TapTap升级系统;
    public static GameObject Player = null;
    public static PlayerAttribute PlayerAttributes;
    public static TapTapModelManger TapTapModelManger;
    public static Dictionary<BossName,BossAttributes> BossAttributes;
    public static BossBase BossCurrent;
    public static float UpdateRandom后座力;
    public static bool UpdateRandom玩家攻击可以移动;
    public static bool UpdateRandom重力切换改为闪现;
    public static AudioSource _AudioSource;
    #endregion

    #region 事件
    #endregion

    #region 字段
    #endregion


    #region 属性 
    #endregion


    #region 方法 
    public  static void PlaySound()
    {
        string name = "菜单点击音效";

        AudioClip clip = Resources.Load<AudioClip>(name);
        _AudioSource.clip = clip;
        _AudioSource.PlayOneShot(clip);
    }
    #endregion

    #region Unity回调
    #endregion

    #region 事件回调
    #endregion

    #region 帮助方法
    #endregion

}

public  class PlayerAttribute
{
    public  float Blood;
    public int Exp;
    public bool Is中毒=false;
    public float 重力转换冷却;
    public float Speed;

    public bool Is禁锢=false;
    public PlayerAttribute(int exp=0)
    {
        Exp = exp;
        //Debug.LogError(ZYKJsonModelToolBase.Single.ZYKModenGetPlayerBlood());
        Blood = ZYKJsonModelToolBase.Single.ZYKModenGetPlayer().Blood;
       
        Speed = ZYKJsonModelToolBase.Single.ZYKModenGetPlayer().Speed;
        TapTapStaticValue.UpdateRandom后座力 = ZYKJsonModelToolBase.Single.ZYKModenGetPlayer().BackForce;
        重力转换冷却 = ZYKJsonModelToolBase.Single.ZYKModenGetPlayer().QjiNengLengQue;
    }
    //TODO: 贺启亮：人物属性写这里
}
public class BossAttributes
{
    public float Blood;
    public BossName BossName;
    public Transform Transform;

    public BossAttributes(float blood,BossName bossName)
    {
        Blood = blood;
        BossName=bossName;

        //Blood2 = blood;

    }
    //TODO: 贺启亮：人物属性写这里
}
public enum BossName
{
    None,
    Boss1,
    Boss2,
    Boss3,
    Boss4,
    Boss5
}